import Mock from 'mockjs'

let params =  Mock.mock({ // 数据池
  "meta": {
    "status": 200,
    "msg": "获取菜单列表成功",
  },
  "data":[
    {
      "authName":"用户管理",
      "children":[
        {
          "authName":"学生列表",
          "children":[],
          "id": "101",
          "order": "null",
          "path": "students"
        },
        {
          "authName":"教师列表",
          "children":[],
          "id": "102",
          "order": "null",
          "path": "teachers"
        }
      ],
      "id":"100",
      "order":"1",
      "path":"users",
    },
    {
      "authName":"课程管理",
      "children":[
        {
          "authName":"教师课程列表",
          "children":[],
          "id": "104",
          "order": "null",
          "path": "teacherClass"
        },
        {
          "authName":"学生课程列表",
          "children":[],
          "id": "105",
          "order": "null",
          "path": "StudentClass"
        },
        {
          "authName":"班级课程列表",
          "children":[],
          "id": "106",
          "order": "null",
          "path": "class"
        },
      ],
      "id":"103",
      "order":"1",
      "path":"classs",
    },
    {
      "authName":"学院管理",
      "children":[
        {
          "authName":"学院列表",
          "children":[],
          "id": "110",
          "order": "null",
          "path": "college"
        },
      ],
      "id":"109",
      "order":"1",
      "path":"college",
    },
    {
      "authName":"权限管理",
      "children":[
        {
          "authName":"角色列表",
          "children":[],
          "id": "108",
          "order": "null",
          "path": "roles"
        },
      ],
      "id":"107",
      "order":"1",
      "path":"roles",
    },
  ]
})

export default {
  getMenuList: () => ({
    data:params.data,
    meta:params.meta
  })
}

